import request from '@/utils/request'

export function List(page) {
    return request({
        url: '/api/app/smart-hotel-app-housing-price/page-housing-prices',
        method: 'get',
        params: {
            pageIndex: page.pageIndex,
            pageSize: page.pageSize,
            ProductName: page.ProductName
        }
    })
}

export function Add(data) {

    return request({
        url: '/api/app/smart-hotel-app-housing-price/housing-price',
        method: 'post',
        data
    })
}

export function Find(data) {
    return request({
        url: '/api/app/smart-hotel-app-housing-price/find-housing-price/' + data,
        method: 'get',
        data
    })
}
export function Delete(data) {
    return request({
        url: '/api/app/smart-hotel-app-housing-price/housing-price/' + data,
        method: 'delete',
    })
}
export function Update(data) {
    return request({
        url: '/api/app/smart-hotel-app-housing-price/housing-price',
        method: 'put',
        data
    })
}

export function IdList(data) {
    return request({
        url: '/api/app/smart-hotel-app-housing-price/' + data + '/id-housing-prices',
        method: 'get',
    })
}